
import request from '@/utils/request'
/**
 * 审批流控制
 */
// 获取审批流控制列表
export const GetWorkFlowMainList = params => request('/api/v1/WorkFlowMain/GetList', { params: params })
// 获取审批流控制详细信息
export const GetWorkFlowMainInfo = params => request('/api/v1/WorkFlowMain/Get', { params: params })
// 创建审批流控制
export const CreateWorkFlowMain = data => request.post('/api/v1/WorkFlowMain/Create', data);
// 更新审批流控制
export const UpdateWorkFlowMain = data => request.post('/api/v1/WorkFlowMain/Update', data);
// 删除审批流控制
export const DeleteWorkFlowMain = data => request.delete('/api/v1/WorkFlowMain/Delete', { data: data });
/**
 * 审批流控制详细
 */
// 获取审批流详细列表
export const GetWorkFlowDetailList = params => request('/api/v1/WorkFlowDetail/GetList', { params: params })
// 获取审批流详细详细信息
export const GetWorkFlowDetailInfo = params => request('/api/v1/WorkFlowDetail/Get', { params: params })
// 创建审批流详细
export const CreateWorkFlowDetail = data => request.post('/api/v1/WorkFlowDetail/Create', data);
// 更新审批流详细
export const UpdateWorkFlowDetail = data => request.post('/api/v1/WorkFlowDetail/Update', data);
// 删除审批流详细
export const DeleteWorkFlowDetail = data => request.delete('/api/v1/WorkFlowDetail/Delete', { data: data });
// 我发送得
export const GetWorkFlowStatusGetList = params => request('/api/v1/WorkFlowStatus/GetWorkFlowStatusGetList', { params: params });
// 我接收得
export const SendWorkFlowStatusGetList = params => request('/api/v1/WorkFlowStatus/SendWorkFlowStatusGetList', { params: params });
// 我发送得
export const SendWorkFlowStatusGetListHistory = params => request('/api/v1/WorkFlowStatus/SendWorkFlowStatusGetListHistory', { params: params });
// 我接收得
export const GetWorkFlowStatusGetListHistory = params => request('/api/v1/WorkFlowStatus/GetWorkFlowStatusGetListHistory', { params: params });
// 获取审核流初始化
export const WorkFlowInit = params => request('/api/v1/WorkFlowStatus/WorkFlowInit', { params: params });
// 获取审核流历史
export const WorkFlowHistory = params => request('/api/v1/WorkFlowStatus/WorkFlowHistory', { params: params });
// 获取字典列表
export const getDictList = params => request('/api/v1/SystemDict/GetListNoPage', { params: params });
// 获取是否需要撤回
export const WorkFlowCheHuiFlag = data => request.post('/api/v1/WorkFlowAuditLog/WorkFlowCheHuiFlag', data);

// 撤回
export const WorkFlowCheHui = data => request.post('/api/v1/WorkFlowAuditLog/WorkFlowCheHui', data);
